#ifndef LOGINFORM_H
#define LOGINFORM_H

#include <QWidget>
#include <QTableView>
#include <QSqlQueryModel>

#include "interfaces.h"

class LoginForm : public FormInterface
{
    Q_OBJECT
    
public:
    explicit LoginForm(QWidget *parent = 0);
    ~LoginForm();
    
    bool isBusy(){return false;}
    bool isSystem(){return true;}
public slots:
    void passwordCommited(const QString &text);

signals:
    void loggedIn();

protected:
    bool eventFilter(QObject *obj, QEvent *event);

private:
    QSqlQueryModel *model;
    QTableView *view;
    int loglevel;
};

#endif // LOGINFORM_H
